﻿using SuperX.Common.Helper;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.Common.MSG
{
    // 
    [JsonConverter(typeof(MsgConvert))]
    public class Message : IJsonSerialize
    {
        //
        [JsonIgnore]
        public IBasicObject Object { get; set; }

        // 
        public string MsgSource { get; set; }

        // 
        public string FullName { get; set; }

        // 
        public DateTime TimeStamp { get; set; }

        // 
        public virtual string ClassType
        {
            get
            {
                return "Message";
            }
        }

        // 
        public string JsonSerialize()
        {
            return JsonHelper.TransferObjectJsonSerialize(this, true);
        }
    }
}
